home *** CD-ROM | disk | FTP | other *** search
- Path: inforamp.net!ts44-07
- From: rmorin@inforamp.net (Randy Charles Morin)
- Newsgroups: comp.lang.c
- Subject: Re: How to tell if a file exists in C
- Date: Fri, 02 Feb 96 18:15:40 GMT
- Organization: MiddleWorld SoftWare
- Message-ID: <4etk2e$7s1@sam.inforamp.net>
- References: <4eqkj6$ipo@charm.magnus.acs.ohio-state.edu>
- NNTP-Posting-Host: ts44-07.tor.inforamp.net
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <4eqkj6$ipo@charm.magnus.acs.ohio-state.edu>,
- xiaoyi@bmecg.bme.ohio-state.edu (Xiaoyi Wu) wrote:
- >Hi, how do I find out if a file already exists
- >in UNIX C? On PCs I would do a findfirst/findnext,
- >is there an equivalent on Unix?
- >
- >Answer CCed to my email appreciated. Thanks.
- >
- >Xiaoyi
-
- I'm assuming that UNIX C has the standard function
- access(...)
- this function has a variation where it test for existence.
-
- Agrivar
-